package com.neusoft.liduan.d0914;

/**
 * 	矩形
 * @author 86185
 *
 */
public class Square extends Shape{
	
	public Square() {
		super(0, 0);
	}

	public Square(double w, double h) {
		super(w, h);
	}
	
	@Override
	public double area() {
		return w * h;
	}

	@Override
	public double perimeter() {
		return (w + h) * 2;
	}

}
